package com.kindel.service.book.impl;

import com.kindel.mapper.book.BookMapper;
import com.kindel.model.book.BookModel;
import com.kindel.service.book.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.awt.print.Book;
import java.util.List;

/**
 * Created by winte on 2017/8/24.
 */
@Service
public class BookServiceImpl implements BookService{
    @Autowired
    private BookMapper bookMapper;
    @Override
    public List<BookModel> loadBook(String name,String author,String typeName) {
        return bookMapper.loadBook(name,author,typeName);
    }

    @Override
    public List<BookModel> loadBookAll() {
        return bookMapper.loadBookAll();
    }

    @Override
    public List<BookModel> loadBookRandom(int count) {
        return bookMapper.loadBookRandom(count);
    }

    @Override
    public List<BookModel> loadBookWeek(int count) {
        return bookMapper.loadBookWeek(count);
    }
}
